package sim1011.examples.kame.test;

import jade.core.Profile;
import jade.core.ProfileImpl;
import jade.core.Runtime;
import jade.wrapper.AgentController;
import jade.wrapper.ContainerController;
import jade.wrapper.StaleProxyException;

public class Starter {
	public static void main(String[] argv) {
		Runtime t = Runtime.instance();
		Profile p0 = new ProfileImpl();
		p0.setParameter(Profile.LOCAL_HOST, "localhost");
		p0.setParameter(Profile.PLATFORM_ID, "sim-platform");
		p0.setParameter(Profile.CONTAINER_NAME, "BrainNode");
		ContainerController main = t.createMainContainer(p0);
		try {
			AgentController brain = main.createNewAgent("brain", "sim1011.examples.kame.test.SmallBrainAgent", new Object[1]);
			brain.start();
		} catch (StaleProxyException e) {
			e.printStackTrace();
		}
	}
}
